#include "../mqserver/mq_connection.hpp"

int main()
{
    // const std::string& id,
    // const VirtualHost::Ptr& host,
    // const ConsumerManager::Ptr cmp,
    // const ProtobufCodecPtr& codec,
    // const muduo::net::TcpConnectionPtr& conn,
    // const threadpool::Ptr& pool

    mq::ConnectionManager::Ptr cmp = std::make_shared<mq::ConnectionManager>();
    cmp->newConnection(std::make_shared<mq::VirtualHost>("host1","./data/host1/message/","./data/host1/host1.db"),
        std::make_shared<mq::ConsumerManager>(),
        mq::ProtobufCodecPtr(),
        muduo::net::TcpConnectionPtr(),
        threadpool::Ptr()
    );

    return 0;
}